package com.yanyanr.yr.greendaosample.greendao.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

/**
 * Created by YR
 */
@Entity
public class UserModel {

    @Id(autoincrement = true)
    public Long id;

    public String userID ;

    public String name ;

    public String description;

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getUserID() {
        return this.userID;
    }

    public void setUserID(String userID) {
        this.userID = userID;
    }

    @Generated(hash = 1737284336)
    public UserModel(Long id, String userID, String name, String description) {
        this.id = id;
        this.userID = userID;
        this.name = name;
        this.description = description;
    }

    @Generated(hash = 782181818)
    public UserModel() {

    }

    public UserModel(String userID, String name, String description) {
        this.userID = userID;
        this.name = name;
        this.description = description;
    }

    @Override
    public String toString() {

        return "id="+id+"\n"
                +"userID="+userID+"\n"
                +"name="+name+"\n"
                +"description="+description+"\n";
    }
}
